GtkSearchEngine: Avoid a crash
authorMatthias Clasen <mclasen@redhat.com>
Fri, 19 Jun 2015 04:32:49 +0000 (00:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 19 Jun 2015 04:32:49 +0000 (00:32 -0400)
commited50772b4154fb7fa3d48be3c37785199ed21276
tree3e961f789646981049fe1604d9b628fa285c1a23
parentd12c7186b6c6db74b507c95b6af11b7d16e99f8a
GtkSearchEngine: Avoid a crash

Add a destroy notify for the data of the callback, so we don't
end up leaving a dangling pointer behind for a short while if
the native engine is finalized before the simple one. This
was showing up as crash when typing and backspacing in the
search entry of the file chooser.
gtk/gtksearchengine.c
gtk/gtksearchenginesimple.c
gtk/gtksearchenginesimple.h